package com.bt.table.ppt;

/**
 * Ret_prd_mtdtId entity. @author MyEclipse Persistence Tools
 */

public class Ret_prd_mtdtId implements java.io.Serializable {

	// Fields

	private String prd_seq_id_fk;
	private String evt_seq_id_fk;
	private String mtrl_cate;
	private String mtrl_prod_id_fk;

	// Constructors

	/** default constructor */
	public Ret_prd_mtdtId() {
	}

	/** full constructor */
	public Ret_prd_mtdtId(String prd_seq_id_fk, String evt_seq_id_fk,
			String mtrl_cate, String mtrl_prod_id_fk) {
		this.prd_seq_id_fk = prd_seq_id_fk;
		this.evt_seq_id_fk = evt_seq_id_fk;
		this.mtrl_cate = mtrl_cate;
		this.mtrl_prod_id_fk = mtrl_prod_id_fk;
	}

	// Property accessors

	public String getPrd_seq_id_fk() {
		return this.prd_seq_id_fk;
	}

	public void setPrd_seq_id_fk(String prd_seq_id_fk) {
		this.prd_seq_id_fk = prd_seq_id_fk;
	}

	public String getEvt_seq_id_fk() {
		return this.evt_seq_id_fk;
	}

	public void setEvt_seq_id_fk(String evt_seq_id_fk) {
		this.evt_seq_id_fk = evt_seq_id_fk;
	}

	public String getMtrl_cate() {
		return this.mtrl_cate;
	}

	public void setMtrl_cate(String mtrl_cate) {
		this.mtrl_cate = mtrl_cate;
	}

	public String getMtrl_prod_id_fk() {
		return this.mtrl_prod_id_fk;
	}

	public void setMtrl_prod_id_fk(String mtrl_prod_id_fk) {
		this.mtrl_prod_id_fk = mtrl_prod_id_fk;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof Ret_prd_mtdtId))
			return false;
		Ret_prd_mtdtId castOther = (Ret_prd_mtdtId) other;

		return ((this.getPrd_seq_id_fk() == castOther.getPrd_seq_id_fk()) || (this
				.getPrd_seq_id_fk() != null
				&& castOther.getPrd_seq_id_fk() != null && this
				.getPrd_seq_id_fk().equals(castOther.getPrd_seq_id_fk())))
				&& ((this.getEvt_seq_id_fk() == castOther.getEvt_seq_id_fk()) || (this
						.getEvt_seq_id_fk() != null
						&& castOther.getEvt_seq_id_fk() != null && this
						.getEvt_seq_id_fk()
						.equals(castOther.getEvt_seq_id_fk())))
				&& ((this.getMtrl_cate() == castOther.getMtrl_cate()) || (this
						.getMtrl_cate() != null
						&& castOther.getMtrl_cate() != null && this
						.getMtrl_cate().equals(castOther.getMtrl_cate())))
				&& ((this.getMtrl_prod_id_fk() == castOther
						.getMtrl_prod_id_fk()) || (this.getMtrl_prod_id_fk() != null
						&& castOther.getMtrl_prod_id_fk() != null && this
						.getMtrl_prod_id_fk().equals(
								castOther.getMtrl_prod_id_fk())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getPrd_seq_id_fk() == null ? 0 : this.getPrd_seq_id_fk()
						.hashCode());
		result = 37
				* result
				+ (getEvt_seq_id_fk() == null ? 0 : this.getEvt_seq_id_fk()
						.hashCode());
		result = 37 * result
				+ (getMtrl_cate() == null ? 0 : this.getMtrl_cate().hashCode());
		result = 37
				* result
				+ (getMtrl_prod_id_fk() == null ? 0 : this.getMtrl_prod_id_fk()
						.hashCode());
		return result;
	}

}